package com.search.mapper;

import com.search.entity.Snacks;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SnacksMapper {
    /**
     * MySQL的模糊查询
     */
    public List<Snacks> getSnacksByNameOrIntroduction(String query);

    /**
     * 获取全部的Snacks
     */
    public List<Snacks> getAllSnacks();
}

